<template>
    <div>
      请您输入内容:
      <input type="text">
      <table border cellspacing="0">
        <tr>
          <th>姓名</th>
          <th>年龄</th>
        </tr>
        <tr v-for="(obj,index) in userlist" :key="index">
          <td>{{ obj.name }}</td>
          <td>{{ obj.age }}</td>
        </tr>
      </table>
    </div>
  </template>
  
  <script>
  export default {
    data(){
      return{
        userlist:[{
        name: 'admin',
        age: 25     
        },{
          name: 'ben',
          age: 21
        },{
          name: 'ann',
          age: 23
        },{
          name: 'tom',
          age: 28
        },{
          name: 'anita',
          age: 22
        }]
      }
    }
  }
  </script>
  
  <style>
  
  </style>